﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Lucandra.Configuration
{
    public class AutoCreateSettingsElement : ConfigurationElement
    {
        [ConfigurationProperty("replicationFactor", IsRequired = false, DefaultValue = 1)]
        public int ReplicationFactor
        {
            get { return (int)this["replicationFactor"]; }
            set { this["replicationFactor"] = value; }
        }

        [ConfigurationProperty("replicationStrategy", IsRequired = false, DefaultValue = "org.apache.cassandra.locator.SimpleStrategy")]
        public string ReplicationStrategy
        {
            get { return (string)this["replicationStrategy"]; }
            set { this["replicationStrategy"] = value; }
        }
    }
}
